package com.ruoyi.library.service.impl;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.ruoyi.library.api.query.DigitalTwinAssetsQuery;
import com.ruoyi.library.api.vo.DigitalTwinAssetsVO;
import com.ruoyi.library.domain.DtsDigitalTwinAssets;
import com.ruoyi.library.mapper.DtsDigitalTwinAssetsMapper;
import com.ruoyi.library.service.IDtsDigitalTwinAssetsService;
import org.springframework.stereotype.Service;

/**
 * 资产Service业务层处理
 *
 * @author ZhangYu
 * @date 2024-05-16
 */
@Service
public class DtsDigitalTwinAssetsServiceImpl extends ServiceImpl<DtsDigitalTwinAssetsMapper, DtsDigitalTwinAssets> implements IDtsDigitalTwinAssetsService {

    @Override
    public Page<DigitalTwinAssetsVO> assetsInfoPage(DigitalTwinAssetsQuery digitalTwinAssetsQuery) {
        return baseMapper.assetsInfoPage(new Page<>(digitalTwinAssetsQuery.getPageNum(), digitalTwinAssetsQuery.getPageSize()), digitalTwinAssetsQuery);
    }

}
